home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / gnu / gnu_oleo_1_2_2.lha / oleo-1.2.2 / configure.in < prev    next >
Text File  |  1993-03-03  |  1KB  |  52 lines

  1. dnl Process this file with autoconf to produce a configure script.
  2.  
  3. AC_INIT(io-term.c)
  4. AC_SUBST(LIBS)
  5.  
  6. dnl Checks for programs:
  7. AC_PROG_CC
  8. AC_PROG_CPP
  9. AC_PROG_YACC
  10. AC_PROG_INSTALL
  11.  
  12. dnl Checks for UNIX variants that set `DEFS':
  13. AC_ISC_POSIX
  14.  
  15. dnl Checks for header files:
  16. AC_STDC_HEADERS
  17. AC_UNISTD_H
  18. AC_DIR_HEADER
  19. AC_HAVE_HEADERS(sys/time.h string.h memory.h sys/select.h)
  20. AC_HEADER_CHECK(X11/X.h, AC_DEFINE(HAVE_X11_X_H); LIBS="$LIBS -lX11")
  21.  
  22. dnl checks for functions
  23. AC_RETSIGTYPE
  24. AC_ALLOCA
  25. AC_REPLACE_FUNCS(random)
  26.  
  27. dnl Replace vfprintf and vsprintf.
  28. dnl If either needs to be replaced, replace _doprnt.
  29. need_doprnt=
  30. AC_COMPILE_CHECK([vfprintf], , [vfprintf();], ,
  31. [LIBOBJS="$LIBOBJS vfprintf.o"; need_doprnt=1])
  32. AC_COMPILE_CHECK([vsprintf], , [vsprintf();], ,
  33. [LIBOBJS="$LIBOBJS vsprintf.o"; need_doprnt=1])
  34. if test $need_doprnt; then
  35.   AC_REPLACE_FUNCS(_doprnt)
  36. fi
  37.  
  38. AC_HAVE_LIBRARY(termlib, \
  39.         LIBS="$LIBS -lcurses -ltermlib", \
  40.         AC_HAVE_LIBRARY(termcap, \
  41.                 LIBS="$LIBS -lcurses -ltermcap", \
  42.                 LIBS="$LIBS -lcurses"))
  43.  
  44. LIBS_save="$LIBS"
  45. LIBS="$LIBS -lm"
  46. AC_HAVE_FUNCS(rint rename \
  47.           getcap stricmp strincmp cbreak \
  48.           strdup strstr)
  49. LIBS="$LIBS_save"
  50.  
  51. AC_OUTPUT(Makefile)
  52.